import { Map } from "immutable";
import UPDATE_PRODUCT_DETAIL from '../actionTypes'
const defaultState = Map({
  productDetail: {}
});
export default (state = defaultState, action) => {
  if (action.type === UPDATE_PRODUCT_DETAIL) {
    return state.set('productDetail', action.payload);
  } else {
    return state.set()
  }
}